package cease.command.cease;

import java.io.File;

import cease.butter.Constants;
import cease.command.NoOptionCommand;
import cease.console.Config;
import cease.urs.Session;

/**
 * @author dhf
 */
public class LogoutCommand extends NoOptionCommand {

    public void run(Session session, String[] args) throws Exception {
        File f = new File(Config.sessionFile);
        f.deleteOnExit();
        System.exit(0);
    }

    public String getCmdDesc() {
        return "logout and exit " + Constants.APP_NAME;
    }

}
